package com.shoprh.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shoprh.demo.domain.Receiver;

import java.util.List;

/**
 * 收货地址Service接口
 *
 */
public interface IReceiverService extends IService<Receiver> {
    /**
     * 查询收货地址
     *
     * @param id 收货地址ID
     * @return 收货地址
     */
    Receiver selectReceiverById(Long id);

    /**
     * 查询收货地址列表
     *
     * @param receiver 收货地址
     * @return 收货地址集合
     */
    List<Receiver> selectReceiverList(Receiver receiver);

    /**
     * 新增收货地址
     *
     * @param receiver 收货地址
     * @return 结果
     */
    int insertReceiver(Receiver receiver);

    /**
     * 修改收货地址
     *
     * @param receiver 收货地址
     * @return 结果
     */
    int updateReceiver(Receiver receiver);

    /**
     * 批量删除收货地址
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteReceiverByIds(String ids);

    /**
     * 删除收货地址信息
     *
     * @param id 收货地址ID
     * @return 结果
     */
    int deleteReceiverById(Long id);
}
